package com.authine.cloudpivot.ext.dto.kingDee.request;

import io.swagger.annotations.Api;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;


@Api("转采收票生成凭证模型")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "转采收票生成凭证模型")
public class KingDeePurchaseReceipt implements Serializable {

    private static final long serialVersionUID = 433230553103727707L;
    /**
     * 发票ID
     */
    @Schema(description = "发票ID")
    private String id;
    /**
     * 供应商名称
     */
    @Schema(description = "供应商名称")
    private String companyName;
    /**
     * 供应商ID
     */
    @Schema(description = "供应商ID")
    private String vendorOrgId;
    /**
     * 发票税率
     */
    @Schema(description = "发票税率")
    private BigDecimal invoiceRate;
    /**
     * 含税总金额
     */
    @Schema(description = "含税总金额")
    private BigDecimal invoiceAmount;
    /**
     * 未税金额
     */
    @Schema(description = "未税金额")
    private BigDecimal preInvoiceAmount;
    /**
     * 订单未税金额
     */
    @Schema(description = "订单未税金额")
    private BigDecimal preOrderAmount;
    /**
     * 收票类型
     */
    @Schema(description = "收票类型")
    private String invoiceType;
    /**
     * 收票时间
     */
    @Schema(description = "收票时间")
    private Date financialConfirmTime;

    /**
     * 收票详情
     */
    @Schema(description = "收票详情")
    private List<KingDeePurchaseReceiptDetail> purchaseInvoiceDetailList;
    /**
     * pocode \ amount
     */
    @Schema(description = "pocode / amount")
    private Map<String, BigDecimal> poDetail;
    /**
     * 账套名
     */
    @Schema(description = "账套名")
    private String accountName;

}
